<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
	'htmlOptions'=>array(
		'class' => 'form collapsed',
	),
)); ?>
		
<fieldset class="grey inline">
<legend><?php echo CHtml::link('采集周期设置','#',array('class'=>'search-button')); ?></legend>

<?php echo $form->label($setting,'CYCLE_N'); ?>
<label><?php echo $form->dropDownList($setting,'CYCLE_N',array('0', '1', '2')); ?>
</label>
<?php echo $form->label($setting,'TYPE_N'); ?>
<label><?php echo $form->dropDownList($setting,'TYPE_N',array('0'=>'一对一', '1'=>'一对多')); ?>
</label>
<?php echo CHtml::submitButton('保存',array('class'=>'button blue small')); ?>
</fieldset>

<fieldset class="grey inline">
  <legend><?php echo CHtml::link('串口参数设置','#',array('class'=>'search-button')); ?></legend>
<?php echo $form->label($setting,'BAUD_V'); ?>
<?php 
$options = array('9600', '115200');
echo CHtml::dropDownList('BAUD_V','', $options)."&nbsp;";
?>

<label><?php echo $form->textField($setting,'BAUD_V',array('size'=>60,'maxlength'=>255)); ?>
</label>
<?php echo $form->label($setting,'PARITY_V'); ?>
<label><?php echo $form->textField($setting,'PARITY_V'); ?>
</label>
<?php echo $form->label($setting,'DATABITS_N'); ?>
<label><?php echo $form->textField($setting,'DATABITS_N',array('size'=>60,'maxlength'=>255)); ?>
</label>
<?php echo $form->label($setting,'STOPBITS_N'); ?>
<label><?php echo $form->textField($setting,'STOPBITS_N',array('size'=>60,'maxlength'=>100)); ?>
</label>
<?php echo CHtml::submitButton('保存',array('class'=>'button blue small')); ?>
</fieldset>
<?php $this->endWidget(); ?>
